﻿@model Bids.Core.DomainObjects.Task
@{
    ViewBag.Title = "提交作品";
    Layout = "_Layout.cshtml";
}
@section 
head
{
    <script src="/js/jquery.validate.js"></script>
     <script src="@Url.Content("~/Areas/Admin/artDialog/artDialog.js?skin=default")" type="text/javascript"></script>
    <script src="@Url.Content("~/Areas/Admin/artDialog/plugins/iframeTools.js")" type="text/javascript"></script>

    <script type="text/javascript">
        jQuery(document).ready(function ($) {
            $("form").validate({
                event: "blur",
                errorElement: "span",
                errorPlacement: function (error, element) {
                    error.appendTo(element.parent("div"));
                    error.appendTo(element.parent("td"));
                },

                success: function (label) {
                    label.addClass("success");
                }
            });

        });
    </script>
    }
<div class="content normal">
    <div class="tab tab-horizontal clearfix">
      <ul>
         <li><a class="active" href="projects.html">提交作品</a></li>
        
      </ul>
    </div>

    <div class="post">
        <form method="post" >
      <table style="width:100%">
          <tr>
              <td style="width:70px;">任务名称：</td>
              <td>@Model.Name <input type="hidden" value="@Model.ID" name="TaskId" /></td>
          </tr>
          <tr>
              <td>作品名称：<span style="color: red;">*</span></td>
              <td><input type="text" name="Title" class="required" /></td>
          </tr>
          <tr>
              <td>预 览 图：<span style="color: red;">*</span></td>
              <td><input name="LOGO" id="LOGO" type="hidden" />
                            <a href="javascript:swfupload('@Url.Action("Index", "Upload")','img','LOGO','LOGO')"><img id="img" width="150" height="150" /></a></td>
          </tr>
          <tr>
              <td>作品描述：<span style="color: red;">*</span></td>
              <td>
                  <textarea name="Explain" class="required"></textarea>
              </td>
          </tr>
          <tr>
              <td></td>
              <td>
                  <input type="submit" value="提交" class="btn" />
                  <span style="color:#00ff90">@TempData["msg"]</span>
                  <span style="color:red">@TempData["error"]</span>
              </td>
          </tr>
      </table>
            </form>
    </div>
  </div>
